Skip to content

Run CI on PHP 8.3 and 8.4#176

Merged
dbu merged 2 commits into
php-http:2.xfrom
GrahamCampbell:patch-1
Sep 23, 2024
Merged

Run CI on PHP 8.3 and 8.4#176
dbu merged 2 commits into
php-http:2.xfrom
GrahamCampbell:patch-1

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets partially #175
Documentation -
License MIT

What's in this PR?

Run the CI on both PP 8.3 and 8.4.

Why?

Validates compatibility with those PHP versions.

Example Usage

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

To Do

  • If the PR is not complete but you want to discuss the approach, list what remains to be done here

@dbu dbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Comment thread .php-cs-fixer.dist.php
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'trailing_comma_in_multiline' => false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would prefer to fix this rather than diverge from the symfony ruleset.

but as you mentioned in php-http/client-common#247 it would make sense to pin the cs fixer to a specific version to avoid random unrelated cs failures in merge requests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to do this because the syntax is not compatible with PHP 7.

Comment thread .github/workflows/ci.yml
coverage: none

- name: Emulate PHP 8.3
run: composer config platform.php 8.3.999

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this? do we have dependencies that limit to php 8.3 and don't install with 8.4?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpspec disallows PHP 8.4

@dbu dbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@dbu
dbu merged commit 37819ce into php-http:2.x Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants